#include "ErrorInfo.h"

RtspStatusCode gRtspStatusCode[] = 
{
	{200, "OK"},
	{100, "CONTINUE"},
	{300, "REDIRECTION"},
	{400, "CLIENT ERROR"},
	{500, "SERVER ERROR"},
	{ 0, NULL}
};

char* GetRtspStatusCodeDescription(int piCode)
{
	int li;
	for(li=0;gRtspStatusCode[li].pstrCodeDescription;li++)
	{
		if(piCode==gRtspStatusCode[li].iCode)
			return gRtspStatusCode[li].pstrCodeDescription;
	}
}





